<?php

class Jf_View_Block_Abstract implements Jf_View_Block_Interface {

    protected $_enabledCache = false;

    public function setView (Jf_View_Interface $view) {
        $this -> _view = $view;
        return $this;
    }

    public function getView () {
        return Jf_View::getView ();
    }

    public function renderScript ($script) {
        $script = '_blocks' . DIRECTORY_SEPARATOR . $script;
        return $this -> getView () -> render ($script);
    }

}
